//
// Source code recreated from a .class file by IntelliJ IDEA
// (powered by FernFlower decompiler)
//

package com.rjxy.demo.pojo;

import java.io.Serializable;
import java.util.Objects;

public class SkillInfo implements Serializable {
    private Integer sid;
    private String skillName;
    private String type;
    private String description;
    private Integer cooldown;
    private Integer cost;
    private HeroInfo heroInfo;

    public SkillInfo() {
    }

    public SkillInfo(Integer sid, String skillName, String type, String description, Integer cooldown, Integer cost, HeroInfo heroInfo) {
        this.sid = sid;
        this.skillName = skillName;
        this.type = type;
        this.description = description;
        this.cooldown = cooldown;
        this.cost = cost;
        this.heroInfo = heroInfo;
    }

    public String toString() {
        return "SkillInfo{sid=" + this.sid + ", skillName='" + this.skillName + '\'' + ", type='" + this.type + '\'' + ", description='" + this.description + '\'' + ", cooldown=" + this.cooldown + ", cost=" + this.cost + ", heroInfo=" + this.heroInfo + '}';
    }

    public Integer getSid() {
        return this.sid;
    }

    public void setSid(Integer sid) {
        this.sid = sid;
    }

    public String getSkillName() {
        return this.skillName;
    }

    public void setSkillName(String skillName) {
        this.skillName = skillName;
    }

    public String getType() {
        return this.type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getDescription() {
        return this.description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public Integer getCooldown() {
        return this.cooldown;
    }

    public void setCooldown(Integer cooldown) {
        this.cooldown = cooldown;
    }

    public Integer getCost() {
        return this.cost;
    }

    public void setCost(Integer cost) {
        this.cost = cost;
    }

    public HeroInfo getHeroInfo() {
        return this.heroInfo;
    }

    public void setHeroInfo(HeroInfo heroInfo) {
        this.heroInfo = heroInfo;
    }

    public boolean equals(Object o) {
        if (this == o) {
            return true;
        } else if (o != null && this.getClass() == o.getClass()) {
            SkillInfo skillInfo = (SkillInfo)o;
            return Objects.equals(this.sid, skillInfo.sid) && Objects.equals(this.skillName, skillInfo.skillName) && Objects.equals(this.type, skillInfo.type) && Objects.equals(this.description, skillInfo.description) && Objects.equals(this.cooldown, skillInfo.cooldown) && Objects.equals(this.cost, skillInfo.cost) && Objects.equals(this.heroInfo, skillInfo.heroInfo);
        } else {
            return false;
        }
    }

    public int hashCode() {
        return Objects.hash(new Object[]{this.sid, this.skillName, this.type, this.description, this.cooldown, this.cost, this.heroInfo});
    }
}
